
class Dog{
    public String name;
    public int age;

    public void eat(){
        int count = 0;
        System.out.println("正在吃饭");
    }
    public void barks(){
        System.out.println("正在汪汪");
    }
}

public class Test {
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        System.out.println(dog1.name);  //输出null
        System.out.println(dog1.age);   //输出0
    }

    public static void main1(String[] args){
        Dog dog = new Dog();
    }
}
